﻿using System;

public class TimeUtil
{
    private TimeUtil() { }
    public static long NowSeconds()
    {
        return (long)(DateTimeOffset.UtcNow.ToUnixTimeSeconds());
    }

    public static long NowMilliSeconds()
    {
        return (long)(DateTimeOffset.UtcNow.ToUnixTimeMilliseconds());
    }
}
